#pragma once

/*
	File:	BitmapFont.h
	Author: TJ Ashby
	Class:	SGD
	Purpose: Draws text from an image
*/

#include "TextureManager.h"
#include "DirectX.h"

class BitmapFont
{
	// Cell Algorithm
	int charWidth;
	int charHeight;
	int numCols;
	int numRows;

	int imageID;
	char firstChar; //first character in the image
	bool toUpper; // only uppercase letters in the image

	TextureManager *pTM;

public:
	BitmapFont(void);
	virtual ~BitmapFont(void);

	bool Initialize(String FileName,int Width,int Height,int col,int rows,char FirstChar,bool ToUpper);
	void Shutdown();

	void Print(const char* szText,const Vector2 &Position,float Scale = 1,Color ColorKey = Color(1,1,1,1));
};

